<?php

namespace App\Admin\Controllers\Common;

use Illuminate\Http\Request;

use App\Http\Controllers\Controller;
use App\Services\DingDing\DingDingSer;

class DingdingController extends Controller
{
    public function syncdinginfo(Request $request)
    {
        try {
            DingDingSer::getDepartmentList();
        } catch (\Exception $e) {
            return response()->json(['code' => '001', 'msg' => $e->getMessage()]);
        }
        return response()->json(['code' => '000', 'msg' => '操作成功']);
    }
}
